package rnd;

public class FATAL {
	public static void main(String[] args) {
		int tiradas = 10000000;
		int exitosI = 0;
		int exitosM = 0;

		for (int i = 0; i < tiradas; i++) {
			int d1 = Dice.d(100);
			int d2 = Dice.d(100);

			if (d1 == d2) {
				exitosI++;
			} else if (d1 > d2) {
				exitosI++;
				exitosM++;
			}
		}

		float pi = (float)exitosI*100/tiradas;
		float pm = (float)exitosM*100/tiradas;

		System.out.println(pi);
		System.out.println(pm);
	}
}
